package com.spukmk3me.io.userinput;

public final class ButtonData
{
    /**
     *  Used by PointerInput
     */
    ButtonData( int buttonID )
    {
        this.buttonID = buttonID;
        
        m_time = new long[ 2 ];
        m_timeAtBeginState = new long[ 2 ];
        
        m_state = UP;
    }
    
    public int getState()
    {
        return m_state;
    }
    
    public long getDuration( int state )
    {
        return m_time[ state ];
    }
    
    public static final int UP      = 0; //! State: up
    public static final int DOWN    = 1; //! State: down
    
    public final int buttonID;
    
    int     m_state;
    long[]  m_time, m_timeAtBeginState;
}
